<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div>
        <div id="app">
            <div v-if='score>=90'>
                <h1>优秀</h1>
            </div>
            <div v-else-if='score>=80 && score<90'>
                <h1>良好</h1>
            </div>
            <div v-else-if='score>=60 && score<80'>
                <h1>及格</h1>
            </div>
            <div v-else>
                <h1>不及格</h1>
            </div>



            <div v-if='score>=90'>
                <h1>优秀</h1>
            </div>
            <div v-if='score>=80 && score <90'>
                <h1>良好</h1>
            </div>
            <div v-if='score>=60 && score <80'>
                <h1>及格</h1>
            </div>
            <div v-if='score < 60'>
                <h1>不及格</h1>
            </div>
            <h1>{{score}}</h1>
            <button @click='change'>点击+分数</button>
        </div>

    </div>
    <!-- 开发环境版本，包含了有帮助的命令行警告 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>

        var vm = new Vue({
            // 监管的容器 
            el: '#app',
            // 数据定义
            data: {
                msg: 'helloworld',
                flag: true,
                score: 59

            },
            methods: {
                change() {
                    this.score = this.score + 1
                }
            }
        })





    </script>
</body>

</html>